import request from '@/utils/request'

//获取图形验证码
export const getCaptchaService = () => {
  return request.get('/captchaImage')
}
//获取验证码
export const getEmailCode = (email, text) => {
  console.log(email, text)
  return request.post('/getCode', { email, text })
}
//登录请求
export const touristLoginService = (email, password) => {
  console.log(email, password)
  return request.post('/login', { email, password })
}
//注册请求
export const touristRegisterService = (email, password, note) => {
  console.log(email, password, note)
  return request.post('/register', { email, password, note })
}
//找回密码验证请求
export const touristFindPasswordService = (email, text) => {
  console.log(email, text)
  return request.post('/findPassword', { email, text })
}
//找回密码请求
export const findPasswordService = (email, password, note) => {
  console.log(email, password)
  return request.post('/updatePassword', { email, password, note })
}
